home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / News / Alexandra.0.82 / Source / Preferences.subproj / PMArticleList.m < prev    next >
Encoding:
Text File  |  1996-01-30  |  1.1 KB  |  38 lines

  1.  
  2. #import "PMCompose.h"
  3. #import "preferences.h"
  4.  
  5. @implementation PreferencesManager(ArticleList)
  6.  
  7. //-----------------------------------------------------------
  8. // ARTICLE LIST
  9. //-----------------------------------------------------------
  10.     
  11. - readArticleListPrefs;
  12.     {
  13.     [lShowSubject setState:[NXApp defaultBoolValue:DEFAULT_SHOW_SUBJECT]];
  14.     [lShowAuthor setState:[NXApp defaultBoolValue:DEFAULT_SHOW_AUTHOR]];
  15.     [lShowSize setState:[NXApp defaultBoolValue:DEFAULT_SHOW_SIZE]];
  16.     [lSmallIs setIntValue:[NXApp defaultIntValue:DEFAULT_SMALL_ARTICLE]];
  17.     [lLargeIs setIntValue:[NXApp defaultIntValue:DEFAULT_LARGE_ARTICLE]];
  18.     return self;
  19.     }
  20.     
  21.     
  22. - writeArticleListPrefs;
  23.     {
  24.     [NXApp setDefault:DEFAULT_SHOW_SUBJECT toBool:[lShowSubject state]];
  25.     [NXApp setDefault:DEFAULT_SHOW_AUTHOR  toBool:[lShowAuthor state]];
  26.     [NXApp setDefault:DEFAULT_SHOW_SIZE    toBool:[lShowSize state]];
  27.     [NXApp setDefault:DEFAULT_SMALL_ARTICLE toInt:[lSmallIs intValue]];
  28.     [NXApp setDefault:DEFAULT_LARGE_ARTICLE toInt:[lLargeIs intValue]];
  29.     return self;
  30.     }
  31.  
  32.  
  33. //-----------------------------------------------------------
  34. // THAT'S IT
  35. //-----------------------------------------------------------
  36.  
  37. @end
  38.